Methods and systems for adaptive control

ABSTRACT

A switching power supply includes a circuit that provides an output voltage, a switching component that switches the circuit between a first output voltage state and a second output voltage state, and a driver component that receives an input control signal and that drives the switching component to cause the circuit to switch between the first output voltage state and the second output voltage state. An adaptive plant estimator receives the output voltage from the circuit and an input to the switching power supply and provides a model of the switching power supply that reflects changes in an output voltage state of the switching power supply. A compensator design component receives the model and provides compensator parameters that reflect changes in the output voltage state of the switching power supply. An adaptive compensator receives the compensator parameters and provides the input control signal to the driver component.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional application of U.S. patent application Ser. No. 11/553,917, filed Oct. 27, 2006, which claims priority to U.S. Provisional Application 60/735,384 filed on Nov. 11, 2005, the disclosure of which is incorporated herein by reference.

BACKGROUND

Applying digital methods to the control of systems bears the promise of creating new features, improving performance, providing greater product flexibility, and providing a lower cost. System operating characteristics dictated by a stored program, rather than the parameters of a set of discrete components, can result in cost and space savings as well as capacity for real time adaptation of those characteristics, greater sophistication in control algorithms and the ability to generate, store and recall valuable real-time functional data.

However, digital feedback control requires high resolution and high speed. These requirements have limited the adoption of digital control in many fields. The advent of low cost logic has it made possible the application of digital control techniques to cost sensitive fields. As the cost of digital logic decreases, new opportunities arise.

A typical digitally controlled feedback system has an analog to digital converter, digital loop compensator, power device driver, and an external system to be controlled. An example of a system in which application of digital control can improve performance or lower cost is the switching power supply or DC-to-DC converter. (However, many other systems would also benefit from application of digital control.)

It is very desirable to minimize the cost, size and power dissipation of a low-cost off-line switching power supply for low power applications, such as recharging cells and batteries used in portable consumer appliances, such as entertainment units, personal digital assistants, and cells phones, for example.

A PWM switched power supply requires a variable pulse width that is controlled by an error signal derived by comparing actual output voltage to a precise reference voltage. The pulse width of the switching interval must also be constrained to be within a minimum and maximum duration. These constraints are imposed for correct PWM power supply or motor driver operation.

An example of a digitally controlled system is shown in FIG. 1. In the example shown in FIG. 1, the system is a simple buck Switching power supply. The fundamental components are the same for any Switching power supply. The sample system shown in FIG. 1 includes three major components: a compensator preceded by an ADC, PWM and power switches, and passive LC network.

Most power management design is based on simple, continuous compensation using frequency domain analysis. Bode analysis is frequently used as the design technique of choice.

More modern techniques such as modeling of the converter in discrete time and using pole placement or optimization techniques to set the gains are not usually considered. Recently developed digital power management chips use the digital equivalent of analog continuous time designs. The design procedure starts with an analog prototype which is discretized and implemented in hardware.

BRIEF SUMMARY

In one embodiment, the system of these teachings includes a Switching power supply, an adaptive plant estimation component capable of receiving an output voltage from the Switching power supply and an input to the Switching power supply and of providing a model of the Switching power supply; the model reflecting changes in output voltage state of the Switching power supply, a compensator design component capable of receiving the model of the Switching power supply and of providing compensator parameters, the compensator parameters reflecting changes in output voltage state of the Switching power supply, an adaptive compensator capable of receiving the compensator parameters and of providing the input control signal to the driver component.

In another embodiment, the controller of these teachings includes a sampling component capable of sampling an output signal from a system and an input signals from the system at a first sampling rate, the first sampling rate being at least equal to a predetermined operating rate, an input parameter obtaining component capable of receiving the output signal and the input signal sampled at the first sampling rate and of obtaining values for a plurality of input parameters, the values for the input parameters being samples at the first sampling rate, a decimator component capable of receiving the values for the input parameters sampled at the first sampling rate and of proving subsampled values for the input parameters, subsampled values being sampled at a second sampling rate, the second sampling rate been slower than the first sampling rate, an adaptive plant estimator component capable of receiving the subsampled values of the input parameters and of obtaining a model of the system, the model reflecting variations in the system and a compensator design component capable of receiving the model of the system and of providing compensator parameters, the compensator parameters reflecting changes in the system, values of said compensator parameters being sampled at the second sampling rate, the compensator design component being capable of providing the values of the compensator parameter to a compensator.

Various other embodiments of the system of the controller of these teachings are also disclosed. Various embodiments of the method of these teachings are also disclosed.

For a better understanding of these teachings, together with other and further needs thereof, reference is made to the accompanying drawings and detailed description and its scope will be pointed out in the appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a graphical schematic of a conventional system;

FIG. 2 is a graphical schematic presentation of an embodiment of the system of these teachings;

FIG. 3 is a graphical schematic representation of another embodiment of the system of these teachings;

FIG. 4 shows a graphical schematic representation of a further embodiment of the system of these teachings;

FIG. 5 shows a graphical schematic representation of a component of an embodiment of the system of these teachings;

FIG. 6 depicts a graphical representation of another embodiment of the component of an embodiment of the system of these teachings;

FIG. 7 is a graphical schematic representation of yet another embodiment of a system of these teachings;

FIG. 8 depicts a graphical schematic representation of still a further embodiment of the system of these teachings;

FIGS. 9-14 depict graphic representations of results from embodiments of the system of these teachings;

FIG. 15 is a graphical schematic presentation of a state space estimator where, in the most general formulation, the signals are vectors and the gains are matrices;

FIG. 16 is a graphical representations of results showing the response of the state estimator for a Switching power supply where the state variables are capacitor voltage and inductor current;

FIG. 17 a is a graphical schematic representation of another estimator structure embodiment of these teachings;

FIG. 17 b is a graphical schematic representation of the another estimator structure embodiment of these teachings applied to of a buck regulator;

FIG. 18 is a graphical representations of results obtained using the embodiment of FIG. 17 b;

FIG. 19 is a graphical schematic representation of yet another estimator structure embodiment of these teachings; and

FIG. 20 is a graphical representations of results obtained using the embodiment of FIG. 19.

DETAILED DESCRIPTION

In one embodiment, the system of these teachings includes a Switching power supply, an adaptive plant estimation component capable of receiving an output voltage from the Switching power supply and an input to the Switching power supply and of proving a model of the Switching power supply; the model reflecting changes in output voltage state of the Switching power supply, a compensator design component capable of receiving the model of the Switching power supply and of providing compensator parameters, the compensator parameters reflecting changes in output voltage state of the Switching power supply, an adaptive compensator capable of receiving the compensator parameters and of providing the input control signal to the driver component. The Switching power supply includes a circuit having at least two reactive components configured to provide an output voltage and capable of being switched from one output voltage state to another output voltage state, a switching component capable of switching said circuit between one output voltage state and the other output voltage state, and a driver component capable of receiving an input control signal and of diving the switching component in order to cause switching between the one output voltage state and the other output voltage state in response to the input control signal.

FIG. 2 presents a block diagram of an embodiment of the system of these teachings. Referring to FIG. 2, a Switching power supply 110 includes an inductor 112 and a capacitor 114 and a switching component 116 and a driver component 118 (a PWM). The voltage across the capacitor 114 is the output voltage of the Switching power supply 110. An adaptive plant estimation component 120 receives the output voltage 124 of the Switching power supply 110 and the input control signal 126 to the Switching power supply 110 and provides a model of the Switching power supply 110, where the model reflects changes in the Switching power supply 110. The model to Switching power supply 110 is provided to a compensator design component 130, which provides compensator component parameters to the adaptive compensator 140. The compensator design parameters reflect changes in the compensation needed to account for changes in the Switching power supply 110. In some embodiments, a disturbance injection component 150 provides a substantially small noise signal that can aid in the detection of changes in the Switching power supply 110. In some embodiments, the adaptive plant estimator component 120 utilizes the LMS algorithm in order to provide a model of the Switching power supply 110. (For a description of the LMS algorithm, see, for example, S. Haykin, Introduction to Adaptive Filters, ISBN 0-02-949460-5, pp. 108-110, which is incorporated by reference herein.). In other embodiments, the adaptive plant estimator component 120 utilizes and RLS algorithm (for a description of the RLS algorithm, see, for example, S. Haykin, Introduction to Adaptive Filters, ISBN 0-02-949460-5, pp. 139-143, which is incorporated by reference herein).

It should be noted that while the exemplary Switching power supply embodiment of these teachings is described by one exemplary type, other power supply architectures such as boost, buck-boost, flyback, forward etc. are within the scope of these teachings.

In one embodiment, the controller of these teachings includes a sampling component capable of sampling an output signal from a system and an input signals from the system at a first sampling rate, the first sampling rate being at least equal to a predetermined operating rate, an input parameter obtaining component capable of receiving the output signal and the input signal sampled at the first sampling rate and of obtaining values for a plurality of input parameters, the values for the input parameters being sampled at the first sampling rate, a decimator component capable of receiving the values for the input parameters sampled at the first sampling rate and of providing subsampled values for the input parameters, subsampled values being sampled at a second sampling rate, the second sampling rate been slower than the first sampling rate, an adaptive plant estimator component capable of receiving the subsampled values of the input parameters and of obtaining a model of the system, the model reflecting variations in the system.

Although the embodiments described hereinbelow are described in terms of a particular controlled component, it should be noted that the embodiments described hereinbelow can be applied to a wide range of other controlled components.

FIG. 3 shows a block diagram representation of an embodiment of the controller of these teachings. Referring to FIG. 3, the embodiment shown therein includes a sampling component 220 that samples an output signal from a system 210 and an input signal from the system at a first sampling rate, the first sampling rate being greater than or equal to a predetermined operating rate, an input parameter obtaining component 230 capable of receiving the output signal and the input signal sampled at the first sampling rate and of obtaining values for a number of input parameters, the values for the input parameters being sampled at the first sampling rate, a decimator component 240 capable of receiving the values for the input parameters sampled at the first sampling rate and of providing subsampled values for the input parameters, the subsamples values being sampled at a second sampling rate, the second sampling rate been slower than the first sampling rate, an adaptive plant estimator component 250 that receives the subsamples values of the input parameters and obtains a model of the system 210, the model reflecting variations in the system and a compensator design component 260 that receives the model of the system and of providing compensator parameters, the compensator parameters reflecting changes in the system; values of said compensator parameters being samples at the second sampling rate; said compensator design component being capable of providing said values of said compensator parameter to a compensator 270. The compensator 270 operates at a predetermined operating rate.

In one exemplary embodiment, these teachings not being limited to that exemplary embodiment, parameters of the system 210 (DC-to-DC power supply) vary slowly. Therefore it is possible to make the parameter updates a slower, offline computation. In a linear compensator type design, an analog-to-digital converter 220 (ADC) measures the output and input (and intermediate in some embodiments) voltages in the power supply 210 and provides them to the compensator 270. This allows for both error feedback and correction of input supply variations. The ADC results are also used by the auto- and cross-correlators 230 to measure the behavior of the power supply 210. The resulting correlation coefficients are used to design the compensator. The parameter computation and compensator design are done offline at a lower sampling rate. This lowers the cost of those tasks, because the digital logic can be in the form of a simple micro-sequencer. If it is desired, the compensator can also be implemented in analog form, with digital adjustments made during the compensator design stage.

In another embodiment, shown in FIG. 4, the controller of these teachings also includes a load current estimating component 280 capable of receiving the output signal sampled at the first sampling rate and state estimation data from the adaptive plant estimator component 250 and of providing estimated load current data at the first sampling rate and another decimator component 288 capable of receiving the estimated load current data at the first sampling rate and of providing estimated load current data at the predetermined operating rate to the compensator 270.

In one instance, the ADC provides inputs to a state estimator 284. The estimated states are then used by the feedback gain matrix in the compensator 270 to complete the feedback system. In another instance, a load current estimator is also included. The load current estimator 286 allows for the effect of variations in the load current to be minimized. The values from the load current estimator 286 and the state estimator 284 are provided to another decimator 288 that provides estimated load current data at the predetermined operating rate to the compensator 270.

In one instance, as shown in FIG. 5, the ADC is an oversampling ADC, a Delta Sigma ADC 290 in the embodiment shown, including a an oversampling modulator, delta-sigma modulator 294 in the embodiment shown, and a decimation filter 296. The oversampling modulator 290 converts the analog input voltage into a high-speed, digital bit stream. The digital bit stream may be as little as one bit wide. Because the digital bit stream is sampled at a very high rate, it is possible to low-pass filter the bit stream and to recover a high-precision, lower-sample-rate representation of the analog signal.

In one embodiment, shown in FIG. 6, the sampling component (22, FIG. 3) is a oversampling (sigma delta in one embodiment) modulator 310 and the first sampling rate is an oversampled rate. In the embodiment shown in FIG. 6, the input parameter obtaining component (230, FIG. 3) is an autocorrelation and crosscorrelation estimator 320. It should be noted that other embodiments of the input parameter obtaining component are possible and within the scope of these teachings. It should also be noted that embodiments are possible in which the oversampling (sigma delta in one embodiment) modulator 310 provides inputs to the state estimator 284 and the load estimator 286.

In many applications, including the DC-to-DC converter application, and in particular for embodiment utilizing the cross- and autocorrelation functions, the decimation filter (decimator) function 240 can be built-in. This reduces the cost because a one-bit multiplier is just a single gate, while a high-precision digital multiplier can be a costly design.

FIG. 7 shows an embodiment of the system of these teachings in which the oversampling (sigma delta in one embodiment) modulator 310 is used as a sampling component. In the embodiment shown in FIG. 7, the system is a switching power supply or a generic power supply. The driver component in the switching power supply is typically a PWM (pulse width modulator). Of specific interest in many instance, especially, but not limited to, the instance in which the driver component is a PWM, it is the specific embodiment in which the first sampling rate (or the oversampled rate in one instance) is substantially equal to twice the operating rate of the system (the PWM rate in embodiments in which the driver is a PWM). In the embodiment shown in FIG. 7, the decimator is integral to the autocorrelation and crosscorrelation estimator 320.

FIG. 8 shows an embodiment of the system of these teachings in which the oversampling (sigma delta in one embodiment) modulator 310 is used as a sampling component and load current and state estimation is also performed. In the embodiment shown in FIG. 8, the decimator is integral to the autocorrelation and cross correlation estimator 320 and the other decimator (288, FIG. 4) is also built-in. The use of a high-speed bit stream for digital converter control applies not just to correlators but also to compensators as well, in particular, even a simple proportional-integral-derivative (PID) compensator, when implemented in the velocity form. In this compensator, the error signal is processed by the sum of a gain, a gain times the derivative, and a gain times the second derivative. The processing result is then integrated. The decimation function, in this embodiment, is achieved by the final integrator and the dynamics of the power supply itself.

In one embodiment, the method of these teachings includes sampling an output signal from a system and an input signal from the system at a first sampling rate, the first sampling rate being at least equal to a predetermined operating rate, obtaining, from the sampled output signal and the sampled input signal, values for a number of input parameters, the values for the input parameters being sampled at the first sampling rate, decimating the values for the input parameter in order to obtain values for a number of subsampled input parameters, the subsampled input parameters being sampled at a second sampling rate, the second sampling rate been slower than the first sampling rate, obtaining, from the subsampled input parameters, a model for the system, obtaining, from the model for the system, compensator parameters and providing the compensator parameters to an adaptive compensator.

In one instance of the above described embodiment of the method of the present teachings, the input parameters for generating a model of the system are the autocorrelation and crosscorrelation. In one instance, simplified hardware can be used to calculate the auto- and cross-correlation. In many instance, the compensator does not have to be updated at every cycle thus the calculations of the planned estimate can be done at a much lower sampling rate. This allows the high-speed part of the algorithm to be implemented in specialized hardware and the low-speed part of the algorithm to be implemented in a very low-cost general purpose microprocessor.

In one instance, the high-speed algorithm may use a delta-sigma modulator as the ADC conversion element, as disclosed hereinabove. This high-speed, small-bit-width, over-sampled data conversion method allows for simpler hardware. The typical delta-sigma ADC decimator can be integrated into or replaced by the correlation filter. Thus the correlation filter hardware is simplified.

A number of conventional techniques (algorithms) can be utilized for the adaptive identification of unknown dynamic systems. One of these conventional techniques is the least means squares (LMS) algorithm. This technique can be easily implemented. However, the LMS algorithm can be slow to converge. The LMS algorithm is effective for the power supply converter application because good initial guesses can be given, so the power supply behaves properly before any adaptation is achieved. In many applications, it is desirable to use an algorithm that can identify the dynamics of the power supply in a time short compared to the time over which the system changes. For example, it is desirable for the algorithm to determine the dynamics of the object being controlled, in this case, the power electronics associated with the power supply, during startup and before regulation began.

One conventional technique for fast plant identification is the Recursive Least Squares (RLS) algorithm. This technique provides for fast convergence, however, it can suffer from a high computational burden. Also, the normal formulation of the Recursive Least Squares algorithm also has some assumptions in it that limit very high-speed performance.

The foundation of the use of autocorrelation and crosscorrelation for system identification comes from the statistical solution which minimizes the mean square error of the Wiener filter is given in equation (1) where ŵ is the vector of estimated filter coefficients, R_(xx) is the correlation matrix of the input signal, and r_(xy) is the cross-correlation vector of the input and output signals.

ŵ=R _(xx) ⁻¹ r _(xy)  (1)

It is possible to numerically estimate the auto-correlation matrix and cross-correlation vector from the observed input and output signals of the plant (system) being identified. These estimates may be used directly to compute the estimated weight vector. In one embodiment of the method of the present teachings, the computational load is separated into two segments, one which must be performed on every new data sample, and one which must be performed only when it is desired to update the weight estimates. By scheduling the weight updates at a slower rate than the data, the overall computational burden of the algorithm can be reduced. However, when computed, the weight estimates will still make use of all data to that point. Thus, this method sacrifices only the weight update rate and not the quality of the estimate. Equation (2) depicts numerical estimates of the auto-correlation matrix and cross-correlation vector. The individual terms can then be computed using equations (3) and (4). Additionally, these expressions can be rewritten in a recursive manner such that they are updated incrementally with each new data point as given by (5) and (6), where the second index is the discrete time offset.

$\begin{matrix} {{{\hat{R}}_{xx} = \begin{bmatrix} {{\hat{r}}_{xx}\mspace{14mu}\lbrack 0\rbrack} & \ldots & {{\hat{r}}_{xx}\mspace{14mu}\left\lbrack {P - 1} \right\rbrack} \\ {{\hat{r}}_{xx}\mspace{14mu}\lbrack 1\rbrack} & \; & {{\hat{r}}_{xx}\mspace{14mu}\left\lbrack {P - 2} \right\rbrack} \\ \vdots & \ddots & \; \\ {{\hat{r}}_{xx}\mspace{14mu}\left\lbrack {P - 1} \right\rbrack} & \; & {{\hat{r}}_{xx}\mspace{14mu}\lbrack 0\rbrack} \end{bmatrix}},{{\hat{r}}_{xy} = \begin{bmatrix} {{\hat{r}}_{xy}\mspace{14mu}\lbrack 0\rbrack} \\ {{\hat{r}}_{xy}\mspace{14mu}\lbrack 1\rbrack} \\ \vdots \\ \left\lbrack {P - 1} \right\rbrack \end{bmatrix}}} & (2) \\ {{{\hat{r}}_{xy}\lbrack j\rbrack} = {\frac{1}{N}{\sum\limits_{m = 0}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - j} \right\rbrack}}}}} & (3) \end{matrix}$

$\begin{matrix} {{{\hat{r}}_{xx}\lbrack j\rbrack} = {\frac{1}{N}{\sum\limits_{m = 0}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - j} \right\rbrack}}}}} & (4) \\ {{{\hat{r}}_{xy}\left\lbrack {j,{k + 1}} \right\rbrack} = {\frac{k + 1}{k + 2}{{\hat{r}}_{xy}\left\lbrack {j,k} \right\rbrack}\frac{1}{k + 1}{y\lbrack k\rbrack}{x\left\lbrack {k - j} \right\rbrack}}} & (5) \\ {{{\hat{r}}_{xx}\left\lbrack {j,{k + 1}} \right\rbrack} = {\frac{k + 1}{k + 2}{{\hat{r}}_{xx}\left\lbrack {j,k} \right\rbrack}\frac{1}{k + 1}{y\lbrack k\rbrack}{x\left\lbrack {k - j} \right\rbrack}}} & (6) \end{matrix}$

The optimal weight vector based on the numerical estimates can then be expressed as given in equation (7). Since the auto-correlation matrix has a Toeplitz structure, there are only 2P recursive estimates necessary for computation of the entire expression. Additionally, this structure allows for the use of efficient matrix inversion techniques which utilize this symmetry to reduce the number of required computations

$\begin{matrix} {\hat{w} = {{\begin{bmatrix} {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\lbrack m\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} \\ {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\lbrack m\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} \\ {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} & {\sum_{m = 0}^{N - 1}{{x\lbrack m\rbrack}{x\lbrack m\rbrack}}} \end{bmatrix}^{- 1}\begin{bmatrix} {\sum_{m = 0}^{N - 1}{{y\lbrack m\rbrack}{x\lbrack m\rbrack}}} \\ {\sum_{m = 0}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} \\ {\sum_{m = 0}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} \end{bmatrix}}.}} & (7) \end{matrix}$

The apparatuses and methods described herein may be implemented by one or more computer programs executed by one or more processors. The computer programs include processor-executable instructions that are stored on a non-transitory tangible computer readable medium. The computer programs may also include stored data. Non-limiting examples of the non-transitory tangible computer readable medium are nonvolatile memory, magnetic storage, and optical storage.

While not desiring to be bound by theory, one rationale motivating the above described embodiment is given hereinbelow. The result of equation (7) above provides the same answer as the batch least squares solution in the case of infinite data. However, for any finite interval of data, the above result and the batch least squares result will differ. This can be seen directly by computing the batch mode least squares solution given by (8) over the same time interval [0,N−1], which results in the least squares weight vector given in equation (9). Comparison of the solutions in equation (7) and (9) indicate differences in the auto-correlation matrices. In fact, the least squares auto-correlation matrix of equation (9) is not necessarily Toeplitz for any finite data set. For a stationary input signal, and as the numerical sum approaches the true statistical value, that the two solutions (Equations (7) and (9)) are identical. However, in many applications, it is desirable to have the best possible estimate given a short finite interval of data. The estimate given by (9) minimizes the sum squared error over any finite data set.

$\begin{matrix} {\hat{w} = {\left\lbrack {X^{T}X} \right\rbrack^{- 1}X^{T}y}} & (8) \\ {\hat{w} = {\begin{bmatrix} {\sum\limits_{m = 2}^{N - 1}{x\lbrack m\rbrack}^{2}} & {\sum\limits_{m = 2}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} & {\sum\limits_{m = 2}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} \\ {\sum\limits_{m = 2}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} & {\sum\limits_{m = 2}^{N - 1}{x\left\lbrack {m - 1} \right\rbrack}^{2}} & {\sum\limits_{m = 0}^{N - 1}{{x\left\lbrack {m - 1} \right\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} \\ {\sum\limits_{m = 2}^{N - 1}{{x\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} & {\sum\limits_{m = 2}^{N - 1}{{x\left\lbrack {m - 1} \right\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} & {\sum\limits_{m = 0}^{N - 1}{x\left\lbrack {m - 2} \right\rbrack}^{2}} \end{bmatrix}^{- 1}\begin{bmatrix} {\sum\limits_{m = 2}^{N - 1}{{y\lbrack m\rbrack}{x\lbrack m\rbrack}}} \\ {\sum\limits_{m = 2}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - 1} \right\rbrack}}} \\ {\sum\limits_{m = 2}^{N - 1}{{y\lbrack m\rbrack}{x\left\lbrack {m - 2} \right\rbrack}}} \end{bmatrix}}} & (9) \end{matrix}$

The individual terms in equation (9) can, in one embodiment, be represented by iterative solutions and the computational load can be split as discussed above such that the weight vector solution is performed at a sub-sampled rate. However, there are now ½(P²+P) unique entries in the auto-correlation matrix. It is not necessary to compute each of these separately since elements along each diagonal are simply a delayed version of first element of the diagonal as given by equation (10).

a _(i,j) [k]=a _(i-1,j-1) [k−1]  (10)

Given the above described property, and the symmetry of the matrix, only P running estimates need to be computed and the appropriate past values of each estimate must be stored. The auto-correlation matrix can then be computed directly from these values. Hereinbelow, this embodiment of the method of the present teachings is also referred as Iterative Least Squares since it exactly implements the least square solution over any finite interval of data.

The above described embodiment is generally applicable for both the FIR and IIR filters. In the instance where the above described embodiment is applied to IIR filters, the input matrix includes a mixture of both the past and current inputs as well as the past outputs.

It should be noted that the embodiments described hereinabove can be applied to a wide range of controlled components besides switching power supplies.

In order to better illustrate the systems and methods of the present teachings, results and details of several exemplary embodiments are presented hereinbelow. It should be noted that the methods and systems of these teachings are not limited to (or limited by) the illustrative embodiment presented hereinbelow.

In one illustrative embodiment, the Iterative Least Squares solution of equation (9) is compared with the equation of (7) which uses the conventional numerical correlation estimates. In one instance, the two embodiments are simulated in a noise-free environment. The system to be identified is a 5 tap FIR filter with coefficients given in (9) and fed with a uniformly distributed random number sequence.

B=[1.0 2.0 −0.5 −0.3 1.2]  (11)

FIG. 9 depicts, for the instance of a noiseless environment, two of the filter coefficients versus time. The dashed horizontal lines are for the Iterative Least Squares solution while the solid jagged lines for the conventional numerical correlation estimate method. In the noiseless case simulated, the Iterative Least Squares solution is correct after 5 time steps (the FIR filter length) while the solution based on the numerically calculated correlations takes more iterations to converge. FIG. 11 depicts the sum squared error between the actual and estimated weight vector at each time step for the noiseless case. In FIG. 11, the solid line represents the conventional correlation estimates and the dashed or lower line is for the Iterative Least Squares solution

In one instance, the Iterative Least Squares solution conventional numerical correlation estimate solution and are simulated for the case where the observations (filter outputs) are corrupted by uniformly-distributed random noise with an amplitude of 10% of the primary excitation signal. Results of the simulation for two of the filter coefficients versus time are shown in FIG. 10. FIG. 12 depicts the above described error signals for the instance where 10% white measurement noise is present.

In another illustrative embodiment, a controller was designed by assuming a second-order compensator and solving for the closed-loop transfer function. The denominator of the closed-loop transfer function was then equated to the desired transfer function. (The polynomial equation obtained by equating the desired transfer function to the denominator of the closed-loop transfer function is known as the Diophantine equation. See for example, Kelly, A., Rinne, K, Control of dc-dc converters by direct pole placement and adaptive feedforward gain adjustment, Twentieth Annual IEEE Applied Power Electronics Conference and Exposition, 2005; APEC 2005, Volume 3, Date: 6-10 Mar. 2005, Pages: 1970-1975, which is incorporated by reference herein.)

FIG. 13 depicts the transient response of a deadbeat controller, designed utilizing the methods of these teachings, to a step change in load current from 10A to 13A. In FIG. 13, the upper trace is output voltage and the lower trace is the commanded duty cycle. FIG. 14 depicts the response of the deadbeat controller, designed utilizing the methods of these teachings, to a large load current step from 5A to 25A where the control signal saturates at full duty cycle. (In FIG. 14, the upper curve reflects output voltage, and the lower curve reflects commanded duty cycle).

As described herein above, the state estimator provides a model of the system to be controlled with an extra input that is used to drive the error between the measurable variables and their corresponding quantities in the model. If the states are observable, it is possible to design a gain for this extra input that results in a stable estimator. However, zero error between the estimated states and the real on measurable states is not always obtained, particularly in the presence of unknown disturbances. This is a limitation when applying state space estimation in general and in particular when applying state space estimation for power supplies. Several embodiments of the state estimator used in these teachings are disclosed hereinbelow.

Switching power supplies can be modeled by a set of differential equations with time as the independent variable. As an example, the differential equations used to model a buck power supply are as follows:

$\frac{x}{l} = {{A_{e}x} + {B_{e}u}}$ y = C_(e)x + D_(e)u

Where: u is the input vector

-   x is the state vector -   y is the output vector     A_(e), B_(e), C_(e), D_(e) are gain matrices.

Assuming that PWM (while in one stationary mode) is modeled as a constant gain equal to the supply voltage, the state vector is the capacitor voltage and conductor current, the input is the duty cycle command, and the output is the output voltage, than the gain matrices are as follows:

$\begin{matrix} {{\frac{}{l}\begin{bmatrix} v \\ i \end{bmatrix}} = {{\begin{bmatrix} 0 & \frac{1}{C} \\ \frac{- 1}{L} & {- \frac{{Rc} + {Rl}}{L}} \end{bmatrix}\begin{bmatrix} v \\ i \end{bmatrix}} + {{\begin{bmatrix} 0 & \frac{Vdd}{L} \end{bmatrix}\lbrack{duty}\rbrack}\lbrack{vout}\rbrack}}} \\ {= {{\begin{bmatrix} 1 & {Rc} \end{bmatrix}\begin{bmatrix} v \\ i \end{bmatrix}} + {\lbrack 0\rbrack \lbrack{duty}\rbrack}}} \end{matrix}$

Where: v is the capacitor voltage

-   i is the inductor current -   Vdd is the supply voltage -   duty is the PWM duty cycle -   L is the inductor inductance -   C is the capacitor capacitance -   Rc is the parasitic resistance of the capacitor -   Rl is the parasitic resistance of the inductor.

The Ae, Be, Ce, and De gain matrices can be readily identified from the equations above. The additional input for state estimation is the error between them measured values and their modeled values this error is multiplied by the gain L, and added to the state vector. In this embodiment, the first equation is modified as:

$\frac{x_{est}}{l} = {{A_{e}x_{est}} + {B_{e}u} + {L_{e}\left( {y - y_{est}} \right)}}$ y_(est) = C_(e)x_(est) + D_(e)u

Where: x_(est) is the estimated states

-   y_(est) is the estimate output -   L_(e) is the estimator gain matrix

FIG. 15 is a graphical schematic presentation of a state space estimator. The results of an exemplary simulation using the buck converter equations can be seen in FIG. 16. It can be seen that there is a DC error in the inductor current. Also, the load current is not determined.

Another embodiment of the estimator of these teachings uses a different structure for the state space estimator where instead of using duty cycle as input, it attributes the error between the modeled output voltage and the measured output voltage primarily to an unknown load current. Using load current instead of the duty cycle input as input, the DC error is significantly reduced. Also, proportional integral control is used to drive the average DC error between the output voltage and the modeled output voltage. FIG. 17 a is a graphical schematic representation of another estimator structure embodiment of these teachings,

Referring to FIG. 17 a, there are two inputs duty cycle 410 and output voltage 420. The PWM or pulse with modulator is modeled as a constant gain 430 and its output is driven into a model of the switching power supply 460. The difference between the estimated output voltage and the measured output voltage, the output of substractor 440, is used to drive a compensator 450, which in the embodiment shown, is a proportional integral compensator. The compensator output is an estimate 480 of the load current disturbance and is fed into the load current input of the switching power supply model 460. The feedback action insures that the required estimated load disturbance is generated by the compensator. The switching power supply model 460 also provides an estimate of the state 470 and an estimate of the output voltage 490.

FIG. 17 b shows the discrete time model of a typical buck converter, one instance of the switching power supply model 460. The first integrator 510 is used to model the inductor current and the second integrator 520 is used to model the capacitor voltage. The inductor current and load current are summed to generate the capacitor current. Note that the sign of the inductor current is chosen to match that of a typical load. That means an increase in the inductor current causes a reduction in the output voltage. The loops containing Rind and Rcap model the losses and output voltage effects of the parasitic resistances.

FIG. 18 is a graphical representations of results obtained, in an exemplary instance, using the embodiment of FIGS. 17 a, 17 b. Note that the output voltage is nearly accurately estimated, the inductor current substantially contains the expected DC information and the load current is estimated.

FIG. 19 shows an additional embodiment, in which the duty cycle is taken as arising from a digital compensator and the discrete time converter model, low-pass filter and estimator compensator are implemented digitally. In this embodiment, the digital sampling rate is chosen to be a multiple of the PWM rate. The combination of that comparator and low-resolution DAC provides a noisy over sampled version of the estimation error. Analog components are the comparator and DAC. As an alternative, a sigma delta modulator or other over-sampling modulator could be used. In this approach, the low-pass filter is the plant model and no additional large filtering delays are incurred. FIG. 19 is an exemplary embodiment of an over-sampling state estimators that use sigma delta or other over-sampling modulator, such as the comparator and DAC, in the error feedback path. Such an embodiment has application to control systems other than control of switching power supplies and can result in a smaller delay than other embodiments.

FIG. 20 is a graphical representations of results obtained, for an exemplary instance, using the embodiment of FIG. 19.

It should be noted that, although the above description of the teachings utilized buck converters as an exemplary embodiment, these teachings are not limited to that embodiment. Also, although the above description of the teachings utilized sigma delta modulator as an exemplary embodiment of over-sampling modulators, other over-sampling modulators are within the scope of this invention. (See, for example, but not limited to, the over-sampling modulators disclosed in U.S. Application Publication 2007/0182610 A1, corresponding to U.S. patent application Ser. No. 11/550,893, entitled Systems and Methods for Digital Control, both of which are incorporated by reference herein.)

Although the present teachings have been described with respect to various embodiments, it should be realized these teachings are also capable of a wide variety of further and other embodiments within the spirit of the present teachings. 

1. A system comprising: a switching power supply comprising: a circuit that includes at least two reactive components and that provides an output voltage, a switching component that switches said circuit between a first output voltage state and a second output voltage state, and a driver component that receives an input control signal and that drives said switching component to cause said circuit to switch between said first output voltage state and said second output voltage state; an adaptive plant estimator component that receives said output voltage from said circuit and an input to said switching power supply and that provides a model of said switching power supply, wherein said model reflects changes in an output voltage state of said switching power supply; a compensator design component that receives said model and that provides compensator parameters, wherein said compensator parameters reflect changes in said output voltage state of said switching power supply; and an adaptive compensator that receives said compensator parameters and that provides said input control signal to said driver component.
 2. The system of claim 1, wherein said compensator parameters reflect changes needed to compensate said changes in said output voltage state of said switching power supply.
 3. The system of claim 1 wherein said adaptive plant estimator component generates said model using a Least Mean Squares (LMS) algorithm.
 4. The system of claim 1 wherein said adaptive plant estimator component generates said model using a Recursive Least Squares (RLS) algorithm.
 5. The system of claim 1 wherein said compensator design component generates said compensator parameters using pole and zero placement.
 6. The system of claim 1 further comprising a disturbance injection component that provides a noise signal to detect said changes in said output voltage state of said switching power supply.
 7. A method comprising: receiving an input to a switching power supply and an output voltage from a circuit of said switching power supply including at least two reactive components; providing a model of said switching power supply based on said input to said switching power supply and said output voltage from said circuit of said switching power supply, wherein said model reflects changes in an output voltage state of said switching power supply; providing compensator parameters based on said model, wherein said compensator parameters reflect changes in said output voltage state of said switching power supply; providing an input control signal based on said compensator parameters; and driving a switching component based on said input control signal to cause said circuit of a switching power supply to switch between a first output voltage state and a second output voltage state.
 8. The method of claim 7 further comprising compensating said changes in said output voltage state of said switching power supply based on said compensator parameters.
 9. The method of claim 7 further comprising generating said model using a Least Mean Squares (LMS) algorithm.
 10. The method of claim 7 further comprising generating said model using Recursive Least Squares (RLS) algorithm.
 11. The method of claim 7 further comprising generating said compensator parameters using pole and zero placement.
 12. The method of claim 7 further comprising providing a noise signal to detect said changes in said output voltage state of said switching power supply.
 13. A method comprising: sampling an input signal to a system and an output signal from said system; obtaining from said sampled input and output signals values for a predetermined finite number of rows and columns from an inverse matrix and a predetermined finite number for a row vector in a least-squares solution; obtaining a model for said system based on said values for the predetermined finite number of rows and columns from said inverse matrix and said predetermined finite number for said row vector in said least-squares solution; and adaptively controlling said system based on the model. 